Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(switch): update swipe interaction docs #1096

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gfellerph
Copy link
Collaborator

After resolving #1045, this pull request removes the question and defines a swipe interaction with reference to the resolution.

After resolving openui#1045, this pull request removes the question and defines a swipe interaction with reference to the resolution.
Copy link
Member

@gregwhitworth gregwhitworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a minor request but approving with changes requested. Please close out the related issue upon merge.

From a user standpoint, the following interactions should be supported

- Click/tap: toggles the switch
- <kbd>Spacebar</kbd>: toggles the switch which has keyboard focus
- Swipe: Switch should support gesture support akin to the range control ([#1045](https://github.com/openui/open-ui/issues/1045))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please link to the MDN documentation of the range control?

Copy link
Collaborator

@tantek tantek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided link to MDN per @gregwhitworth request.

site/src/pages/components/switch.explainer.mdx Outdated Show resolved Hide resolved
@gfellerph gfellerph requested a review from tantek October 10, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants